{% extends "base.html" %}

{% block content %}

<div class="grid_16">

    <div class="box">

        <h2 class="box-title">Create post</h2>

        <div class="box-content">
        <form method="post" action="">
            {% if error %}<div class="error">{{ error.message }}</div>{% endif %}

            <div class="form-item">
                <label class="label" for="title">Title</label>
                <input type="text" class="text" name="fields[title]" size="45" id="title" value="{{ form.fields.title }}" />
            </div>

            <div class="form-item">
                <label class="label" for="content">Content</label>
                <textarea id="content" name="fields[content]" rows="8" cols="60" class="text">{{ form.fields.content }}</textarea>
            </div>

            <div>
                <input type="hidden" name="_method" value="suit.blog.post.add" />
                <input type="submit" class="submit" value="Submit" />&nbsp;
            </div>
        </form>

         </div> <!-- End .box-content -->
    </div> <!-- End .box -->

</div> <!-- End .grid_6 -->

{% endblock %}
